package com.example.dzbsh.service;


import com.example.dzbsh.dao.DictRenyuanleibieMapper;
import com.example.dzbsh.model.DictRenyuanleibie;
import com.example.dzbsh.model.DictRenyuanleibieExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DictRenyuanleibieService {
    @Resource
    DictRenyuanleibieMapper ddMapper;

    public List<DictRenyuanleibie> findValid() {

        DictRenyuanleibieExample mmExample = new DictRenyuanleibieExample();
        mmExample.createCriteria().andStatusEqualTo(1);
        mmExample.setOrderByClause("ordernum asc");

        return ddMapper.selectByExample(mmExample);
    }
}
